package com.yunwushanhe.student.service;


import com.yunwushanhe.student.bean.ret.Result;
import com.yunwushanhe.student.bean.req.StudentAddReq;
import com.yunwushanhe.student.bean.req.PageReq;
import com.yunwushanhe.student.bean.req.StudentUpdateReq;
import com.yunwushanhe.student.entity.Student;

import java.util.List;

public interface StudentService {
    void add(StudentAddReq addStudentInfo);

    Result<List<Student>> selectPage(PageReq pageReq);

    Result<String> deleteById(Long id);

    Result<Student> selectById(Long id);

    Result<String> updateById(StudentUpdateReq updateReq);

    Result<List<Student>> selectAll();
}
